from tkinter import *
root = Tk()
root.title("1")
root.geometry("500x500")
canvas = Canvas(bg = "white", width = 500,height = 500)
canvas.pack(anchor = CENTER,expand = 1)
x1 = int(input())
y1 = int(input())
cof = int(input())
x2 = x1+cof*10 + (x1+cof*10 - x1)
y2 = y1 + (y1+cof*10*3 - y1)/3
if x2>500 or x1<0 or y1>500 or y1<0:
    print("Размер фигуры превышает максимальный размер поля")
else:
    canvas.create_rectangle(x1,y1,x1+cof*10,y1+cof*10*3,fill = "blue")
    canvas.create_rectangle(x1+cof*10,y2,x2,y2+(y1+cof*10*3 - y1)/3,fill = "blue")
root.mainloop()
